package com.aaa.member.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (Order)实体类
 *
 * @author pyy
 * @since 2020-11-17 20:06:33
 */
public class Order implements Serializable {
    private static final long serialVersionUID = -82530158119588174L;
    /**
     * 订单ID
     */
    private Integer id;
    /**
     * 客户ID
     */
    private Integer clientId;
    /**
     * 车辆ID
     */
    private Integer carId;
    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//处理接收参数
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//处理返回参数
    private Date startTime;
    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//处理接收参数
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//处理返回参数
    private Date endTime;
    /**
     * 租出门店
     */
    private Integer brrowShop;
    /**
     * 归还门店
     */
    private Integer returnShop;
    /**
     * 总金额
     */
    private Object totalPrice;
    /**
     * 预付金额
     */
    private Object preparidAmount;
    /**
     * 订单状态（输入Entered1，提交Booked2，预约Reserved3，使用中Inuse4，交还Returned5，取消Cancelled6）
     */
    private Integer state;
    /**
     * 是否送车上门
     */
    private String isgetcarathome;
    /**
     * 上门地址ID
     */
    private String getcarlocation;
    /**
     * 是否上门还车
     */
    private String isreturncarathome;
    /**
     * 上门地址ID
     */
    private String returncarlocation;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//处理接收参数
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//处理返回参数
    private Date addtime;

    private String orderNo;

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getClientId() {
        return clientId;
    }

    public void setClientId(Integer clientId) {
        this.clientId = clientId;
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getBrrowShop() {
        return brrowShop;
    }

    public void setBrrowShop(Integer brrowShop) {
        this.brrowShop = brrowShop;
    }

    public Integer getReturnShop() {
        return returnShop;
    }

    public void setReturnShop(Integer returnShop) {
        this.returnShop = returnShop;
    }

    public Object getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Object totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Object getPreparidAmount() {
        return preparidAmount;
    }

    public void setPreparidAmount(Object preparidAmount) {
        this.preparidAmount = preparidAmount;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getIsgetcarathome() {
        return isgetcarathome;
    }

    public void setIsgetcarathome(String isgetcarathome) {
        this.isgetcarathome = isgetcarathome;
    }

    public String getGetcarlocation() {
        return getcarlocation;
    }

    public void setGetcarlocation(String getcarlocation) {
        this.getcarlocation = getcarlocation;
    }

    public String getIsreturncarathome() {
        return isreturncarathome;
    }

    public void setIsreturncarathome(String isreturncarathome) {
        this.isreturncarathome = isreturncarathome;
    }

    public String getReturncarlocation() {
        return returncarlocation;
    }

    public void setReturncarlocation(String returncarlocation) {
        this.returncarlocation = returncarlocation;
    }

}